﻿using System;
using System.Collections.Generic;

namespace LastLand.Data.World
{
    public class CCity
    {
        private Int32 granaryLevel_;
        private Int32 forgeLevel_;
        private Int32 marketLevel_;
        private Int32 courthouseLevel_;

        private CWorldGrid position_;
        private CCountry country_;
        private List<CWorldGrid> territoryGrid_;

        public CCity()
        {
            granaryLevel_ = 0;
            forgeLevel_ = 0;
            marketLevel_ = 0;
            courthouseLevel_ = 0;

            position_ = null;
            country_ = null;
            territoryGrid_ = new List<CWorldGrid>();
        }

        public CWorldGrid Position
        {
            get { return position_; }
            set { position_ = value; }
        }

        public List<CWorldGrid> Territory
        {
            get { return territoryGrid_; }
            set { territoryGrid_ = value; }
        }

        public CCountry Country
        {
            get { return country_; }
            set { country_ = value; }
        }

        public Int32 GranaryLevel
        {
            get { return granaryLevel_; }
            set { granaryLevel_ = value; }
        }

        public Int32 ForgeLevel
        {
            get { return forgeLevel_; }
            set { forgeLevel_ = value; }
        }

        public Int32 MarketLevel
        {
            get { return marketLevel_; }
            set { marketLevel_ = value; }
        }

        public Int32 CourthouseLevel
        {
            get { return courthouseLevel_; }
            set { courthouseLevel_ = value; }
        }
    }
}
